﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

internal class Info:Singleton<Info>
{
    //存储存档系统InfoSystem不关注的信息
    public int turnNumber=0;
    void OnEnable()
    {
        ActionSystem.AttachPerformer<EnemyTurnGA>(EnemyTurnPerformer);
    }

    void OnDisable()
    {
        ActionSystem.DetachPerformer<EnemyTurnGA>();
    }
    //记录回合数
    private IEnumerator EnemyTurnPerformer(EnemyTurnGA enemyTurnGA)
    {
        turnNumber++;
        //Debug.Log(turnNumber);
        yield return null;
    }

}
